﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Account_Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div align="center" style="margin-top: 100px;">

            <dx:ASPxRoundPanel ID="pnl" runat="server" BackColor="White" Height="143px" HorizontalAlign="Center" Width="311px" HeaderText="Авторизация">
                <HeaderStyle BackColor="#DEDEDE">
                    <BorderLeft BorderStyle="None" />
                    <BorderRight BorderStyle="None" />
                    <BorderBottom BorderStyle="None" />
                </HeaderStyle>
                <TopLeftCorner Height="5px" Url="~/Images/ASPxRoundPanel/1288264411/TopLeftCorner.png" Width="5px">
                </TopLeftCorner>
                <NoHeaderTopLeftCorner Height="5px" Url="~/Images/ASPxRoundPanel/1288264411/NoHeaderTopLeftCorner.png" Width="5px">
                </NoHeaderTopLeftCorner>
                <TopRightCorner Height="5px" Url="~/Images/ASPxRoundPanel/1288264411/TopRightCorner.png" Width="5px">
                </TopRightCorner>
                <NoHeaderTopRightCorner Height="5px" Url="~/Images/ASPxRoundPanel/1288264411/NoHeaderTopRightCorner.png" Width="5px">
                </NoHeaderTopRightCorner>
                <BottomRightCorner Height="5px" Url="~/Images/ASPxRoundPanel/1288264411/BottomRightCorner.png" Width="5px">
                </BottomRightCorner>
                <BottomLeftCorner Height="5px" Url="~/Images/ASPxRoundPanel/1288264411/BottomLeftCorner.png" Width="5px">
                </BottomLeftCorner>
                <HeaderLeftEdge>
                    <BackgroundImage HorizontalPosition="left" ImageUrl="~/Images/ASPxRoundPanel/1288264411/HeaderLeftEdge.png" Repeat="NoRepeat" VerticalPosition="bottom" />
                </HeaderLeftEdge>
                <HeaderContent>
                    <BackgroundImage HorizontalPosition="left" ImageUrl="~/Images/ASPxRoundPanel/1288264411/HeaderContent.png" Repeat="RepeatX" VerticalPosition="bottom" />
                </HeaderContent>
                <HeaderRightEdge>
                    <BackgroundImage HorizontalPosition="right" ImageUrl="~/Images/ASPxRoundPanel/1288264411/HeaderRightEdge.png" Repeat="NoRepeat" VerticalPosition="bottom" />
                </HeaderRightEdge>
                <PanelCollection>
                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                        <dx:ASPxLabel ID="lbl_kontr" runat="server" Text="Укажите организацию">
                        </dx:ASPxLabel>
                        <dx:ASPxComboBox ID="cbb_kontr" runat="server" Width="100%" AutoPostBack="true" EnableClientSideAPI="true"
                            TextField="NAME" ValueField="CODE" ValueType="System.Int32" OnSelectedIndexChanged="cbb_kontr_SelectedIndexChanged">
                        </dx:ASPxComboBox>
                        <dx:ASPxLabel ID="lbl_user" runat="server" Text="Укажите пользователя">
                        </dx:ASPxLabel>
                        <dx:ASPxComboBox ID="cbb_worker" runat="server" Width="100%" TextField="FIO" ValueField="CODE" ValueType="System.Int32">
                        </dx:ASPxComboBox>
                        <dx:ASPxLabel ID="lbl_pass" runat="server" Text="Пароль">
                        </dx:ASPxLabel>
                        <dx:ASPxTextBox ID="ed_pass" runat="server" Width="100%" Password="True">
                        </dx:ASPxTextBox>
                        <div style="margin-top: 10px">
                            <dx:ASPxButton ID="btnLogin" runat="server" Text="Войти" OnClick="btnLogin_Click">
                            </dx:ASPxButton>
                        </div>

                    </dx:PanelContent>
                </PanelCollection>
                <Border BorderColor="#8B8B8B" BorderStyle="Solid" BorderWidth="1px" />
            </dx:ASPxRoundPanel>

        </div>
        <asp:EntityDataSource ID="ds_kontr" runat="server" ConnectionString="name=RegistRar" DefaultContainerName="RegistRar" EnableFlattening="False" EntitySetName="KONTRAGENT" Select="it.[CODE], it.[NAME]">
        </asp:EntityDataSource>
    </form>
</body>
</html>
